<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:93:"/data/mnt/wwwroot/luckydraw/m/public/../application/view/lianpiao/lianpiao_luckydraw_list.php";i:1496382336;}*/ ?>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
    <title>景区列表</title>
    <link rel="stylesheet" href="<?php echo \think\Config::get('resources'); ?>/css/bootstrap.css">
    <link rel="stylesheet" href="<?php echo \think\Config::get('resources'); ?>/css/font-awesome.css">
    <link rel="stylesheet" href="<?php echo \think\Config::get('resources'); ?>/css/cl-style.css?11">
    <script type="text/javascript" src="<?php echo \think\Config::get('resources'); ?>/js/jquery-1.9.1.min.js"></script>
</head>
<body class="cl-body-bj">
<div class="container-fluid">
    <div class="row">
        <header class="cl-Forgetpasswd-header cl-top">
            <ul>
                <li class="col-xs-3"><a href="<?php echo url('index'); ?>"><i class="fa fa-chevron-left"> 返回</i></a></li>
                <li class="col-xs-6 text-center"><span class="text-center">景区列表</span></li>
                <li class="col-xs-3"><a href="#" onclick="zpShai(this)"><img class="cl-shaixuan" src="<?php echo \think\Config::get('resources'); ?>/img/shaixuan.png"/></a></li>
            </ul>
        </header>
    </div>
    <div class="cl_nav_tankuang" id="cl_nav_tankuang" style="display:none;">
        <header>
            筛选<i class="fa fa-close" onclick="zpClose(this)"></i>
        </header>
        <div class="cl_shaixuan_box">
            <h5>级别</h5>
            <ul>
                <a onclick="search_jibie('AA')"><li>AA</li></a>
                <a onclick="search_jibie('AAA')"><li>AAA</li></a>
                <a onclick="search_jibie('AAAA')"><li>AAAA</li></a>
                <a onclick="search_jibie('AAAAA')"><li>AAAAA</li></a>
                <a onclick="search_jibie('T(推荐)')"><li>推荐</li></a>
            </ul>
            <div class="clearfix"></div>
        </div>
        <div class="cl_shaixuan_box2">
            <h5>省份</h5>
            <ul>
        		<?php if(is_array($area) || $area instanceof \think\Collection || $area instanceof \think\Paginator): $i = 0; $__LIST__ = $area;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ar): $mod = ($i % 2 );++$i;?>
                <a onclick="a_search('<?php echo $ar['lname']; ?>')"><li><?php echo $ar['lname']; ?></li></a>
        		<?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <div class="clearfix"></div>
        </div>
		<div class="cl_shaixuan_box2">
            <ul>
                <a onclick="a_search('')"><li>显示全部景区</li></a>
            </ul>
            <div class="clearfix"></div>
        </div>
        <div class="cl_btn">
            <button type="button" class="btn btn-warning btn-sm" onclick="zpClose(this)">完成</button>
        </div>

    </div>
     <div class="form-group  has-feedback cl-MyCatalog-ss">
        <label class="control-label" for="inputSuccess2"></label>
        <input type="text" class="form-control" aria-describedby="inputSuccess2Status" id='search' onkeyup="search()" placeholder="输入景区部分信息模糊查询，留空显示全部景区">
        <i class="fa fa-search form-control-feedback" aria-hidden="true"></i>
        <span id="inputSuccess2Status" class="sr-only">(success)</span>
    </div>
</div>
<div class="container-fluid">
    <h1 class="cl-tishi"><span>姓名:<?php echo $info['username']; ?></span><span class="cl-tishi cl-tishi2">联票号:<?php echo $info['lianpiaono']; ?></span><span class=""><a href="<?php echo url('prize/prize',['lpn'=>$info['lianpiaono']]); ?>" class="btn btn-success padding"><?php echo $zuhe['button_name']; ?></a></span></h1>
    <?php if(is_array($dynamicPrize) || $dynamicPrize instanceof \think\Collection || $dynamicPrize instanceof \think\Paginator): $i = 0; $__LIST__ = $dynamicPrize;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$d): $mod = ($i % 2 );++$i;?>
        <div class="row" id="data" data-text="<?php echo $travel[$d['travel_id']]['title']; ?>,<?php echo getArea($travel[$d['travel_id']]['province'],$travel[$d['travel_id']]['city'],$travel[$d['travel_id']]['town']); ?>,<?php echo $travel[$d['travel_id']]['jqjijie']; ?>" data-area="<?php echo $travel[$d['travel_id']]['jqjijie']; ?>">
            <ul class="cl-Catalog-box">
                <li class="cl-Catalog-box2">
                    <img class="cl-Catalog-img" src="<?php if(empty($travel[$d['travel_id']]['thumb']) || (($travel[$d['travel_id']]['thumb'] instanceof \think\Collection || $travel[$d['travel_id']]['thumb'] instanceof \think\Paginator ) && $travel[$d['travel_id']]['thumb']->isEmpty())): ?>
                    <?php echo \think\Config::get('resources'); ?>/upload/user.jpg
                    <?php else: ?>
                    <?php echo \think\Config::get('gobal.imgServer'); ?><?php echo $travel[$d['travel_id']]['thumb']; endif; ?>
                    " >
                </li>
                <li class="cl-Catalog-box2 cl-Catalog-box3">
                    <ul class="cl-Catalog-text">
                        <li class="col-xs-12"><h5><?php echo $travel[$d['travel_id']]['title']; ?></h5></li>
                        <li class="col-xs-12"><p>时间:<?php echo $d['starttime']; ?>至<?php echo $d['endtime']; ?></p></li>
                        <li class="col-xs-12"><p>级别:<?php echo $travel[$d['travel_id']]['jqjijie']; ?></p></li>
                        <li class="col-xs-12 ">
                            <?php if(isset($yuding[$d['prize_coupon_code']])): ?>
                                <button type="button" class="btn btn-default  btn-block btn-warning2" >已预约</button>
                                <?php else: ?>
                                <button type="button" class="btn  btn-block btn-warning" onclick="window.location='<?php echo url('lianpiao_travel_details',array('od'=>$d['prize_coupon_code'])); ?>'">预约</button>
                            <?php endif; ?>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    <?php endforeach; endif; else: echo "" ;endif; ?>
    <div class="row">
        <ul class="container-fluid cl-Catalog-box">
            <li class="cl-Catalog-text">
            <?php echo $zuhe['draw_use_rules_content']; ?>
            </li>
        </ul>
    </div>
</div>
							  
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">闭园原因</h4>
      </div>
      <div class="modal-body" id="closeid">
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div>

	
<script>
	function closeMsg($id){
		$('#closeid').html($id);
		$('#myModal').modal('show');
	}
	function search(){
		var sea=$('#search').val();
		var row_total=$("div[id^='data']");
		row_total.each(function() {
			var $this = $(this);
			if(sea==''){
				$this.show();
				return;
			}
			var str= $this.data('text');
			if(str.indexOf(sea)>=0){
				$this.show();
			}else{
				$this.hide();
			}
			
		});
	}
	
	function search_jibie($jibie){
		var row_total=$("div[id^='data']");
		row_total.each(function() {
			var $this = $(this);
			var str= $this.data('area');
			if($jibie==str){
				$this.show();
			}else{
				$this.hide();
			}
			
		});
	}
	
	function shows(){
		var row_total=$("div[id^='data']");
		row_total.each(function() {
			var $this = $(this);
			$this.show();
		});
	}
	
	function a_search($ts){
		$('#search').val($ts);
		search();
	}
	
	 function zpShai(){
        var x=document.getElementById("cl_nav_tankuang");
        x.style.display="block";
    }
    
    function zpClose(){
        var x=document.getElementById("cl_nav_tankuang");
        x.style.display="none";
    }
</script>
<script charset="utf-8" type="text/javascript" src="<?php echo \think\Config::get('resources'); ?>/js/baidu_count.js"></script>
<script type="text/javascript" src="<?php echo \think\Config::get('resources'); ?>/js/bootstrap.js"></script>
</body>
</html>